package com.tripwego.client.jsni;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.maps.client.geom.LatLng;

/**
 * 
 * @author Julien
 * 
 * results[]: {
 *  types[]: string,
 *  formatted_address: string,
 *  address_components[]: {
 *   short_name: string,
 *   long_name: string,
 *   types[]: string
 *  },
 *  geometry: {
 *   location: LatLng,
 *   location_type: GeocoderLocationType
 *   viewport: LatLngBounds,
 *   bounds: LatLngBounds
 *  }
 * }
 * 
 */

public class GeocoderResult extends JavaScriptObject {

	  // Overlay types always have protected, zero-arg ctors
	  protected GeocoderResult() { } 
	    
	  // Typically, methods on overlay types are JSNI
	  public final native String getFormattedAddress() /*-{ return this.formatted_address; }-*/;
	  public final native LatLng getLocation()  /*-{ return this.geometry.location;  }-*/;
}
